//
//  BVEmptyMyCoupon.m
//  BuyVegetable
//
//  Created by zhuzi on 16/11/7.
//  Copyright © 2016年 com.yinding. All rights reserved.
//

#import "BVEmptyMyCoupon.h"

@implementation BVEmptyMyCoupon

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self setChildView];
    }
    return self;
}
-(void)setChildView{
    
    self.backgroundColor = [UIColor BVBackgroundLightGrayColor];
    
    UILabel *titleLabel = [[UILabel alloc]init];
    [self addSubview:titleLabel];
    titleLabel.font = [UIFont systemFontOfSize:20];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.textColor = [UIColor BVTextLightGrayColor];
    titleLabel.text = @"您还没有此项优惠券哦~";
    titleLabel.sd_layout
    .topSpaceToView(self,150)
    .centerXIs(self.centerX)
    .heightIs(60);
    [titleLabel setSingleLineAutoResizeWithMaxWidth:300];
    
}
@end
